package com.community.remote;

import com.community.domain.enity.UserVo;
import com.community.factory.SystemRemoteFactory;
import com.community.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(contextId = "systemRemote",value = "community-system",fallbackFactory = SystemRemoteFactory.class,path = "/user")
public interface SystemRemote {

    @PostMapping("/loginByPassword")
    Result<UserVo> loginByPassword(UserVo userVo);
}
